﻿<?php 
session_start();
include("DbSingleton.php");
include("Servicos/ServicoRelatorio.php");

$servico = new ServicoRelatorio();

$servico->contaAcesso();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-BR">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="amatricula.css" />
<link rel="stylesheet" type="text/css" href="table.css" />
<!--<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Amaranth|Questrial|Open+Sans+Condensed:300">!-->
<title>AMatricula</title>
<link rel="stylesheet" type="text/css" href="bootstrap/font-awesome.css" />


<script type="text/javascript" src="js/simplemodal/mootools-core-1.3.1.js"></script>
<script type="text/javascript" src="js/simplemodal/mootools-more-1.3.1.1.js"></script>
<script type="text/javascript" src="js/simplemodal/simple-modal.js"></script>

<link rel="stylesheet" type="text/css" href="js/simplemodal/assets/css/simplemodal.css">
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery.json-2.3.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>



</head>
<?php
include("Model/Consulta.php");$consulta = new Consulta();
?>
<body>
<div id="general">
	<div id="head-menu">
		<div id="top">
			<div id="line-top">
				<img class="img-top" src="_imgs/zas-of-logo.png" alt="ZasOfficer" width=auto height=30px/>
			</div>

			<div id="check-in">
				<div class="limpar">
				<a class="btn btn-danger" href="#" id="btn_limpa"><i class="icon-trash icon-large"></i> Limpar Consulta</a>
				<a href="#" class="btn btn-success" id="modal-ajax" ><i class="icon-bar-chart icon-large"></i> Relatório de Acessos</a>
				</div>
				<div id="welcome">Bem vindo, RightChoice. Hoje é dia <?php echo date('d')."/".date('m')."/".date('Y'); ?> ID:<?php echo $_SESSION["ID"]?></div>
			</div>
		</div>

		<ul id="menu-top">
			
		</ul>
	</div>

	<div id="workspace">

		<div class="content">
			
			
			<fieldset class="group-fields">
				<legend>Informações do curso:</legend>
				<div class="grid-fields">
					<div id="search">
							<label>Curso</label><select class="border-radius-15 input-text" type="text" name="curso" id="c_curso" />
							<option value="">Selecione o curso</option>
							<option value="1">Ciência da computação</option>
							</select>
					</div>
				

				</div>
				<div class="grid-title"><i class="icon-table icon-large"></i> Disciplinas do curso:</div>
				<div class="grid-result">
					<table class="grid-table" id="grid_disciplinas" >
						<tr>
							<th class="colum">Código</th>
							<th>Disciplina</th>
							<th class="colum">Ação</th>
						</tr>
						<tr>
							<td  colspan="3"><i class="icon-warning-sign icon-larger"></i>  Nenhum registro</td>
						</tr>
					</table>
					
					<div class="place-action">
						<button class="btn btn-success" id="btn-jafiz" type="submit"><i class="icon-ok icon-large"></i> Ja Fiz</button>
						<button class="btn btn-success" id="btn-naoquero" type="submit"> <i class="icon-remove icon-large"></i> Não quero agora</button>
					</div>

				</div>

				<div class="grid-title"><i class="icon-table icon-large"></i> Disciplinas não quero fazer agora:</div>
				<div class="grid-result">
					<table class="grid-table" id="grid_naoquero" border="1">
						<tr>
							<th class="colum">Código</th>
							<th>Disciplina</th>

						</tr>
						<tr>
							<td  colspan="3"><i class="icon-warning-sign icon-larger"></i>  Nenhum registro</th>
						</tr>
					</table>
					

				</div>


				<div class="grid-title"><i class="icon-table icon-large"></i> Disciplinas já cursadas:</div>
				<div class="grid-result">
					<table class="grid-table" id="grid_jafiz" border="1">
						<tr>
							<th class="colum">Código</th>
							<th>Disciplina</th>
					
						</tr>
						<tr>
							<td  colspan="3"><i class="icon-warning-sign icon-larger"></i>  Nenhum registro</td>
						</tr>
					</table>
				

				</div>
			</fieldset>
			<fieldset class="group-fields">
				<legend>Disponibilidade de horários:</legend>
				<div class="grid-fields">
					<div id="search">
						<form id="#form_diponibilidade" name="src" action="#" method="get" onsubmit="return false;">
							<label>Dia:</label><select class="border-radius-15 input-text" type="text" id="c_dia" name="curso" />
							<option value="2">Segunda</option>
							<option value="3">Terça</option>
							<option value="4">Quarta</option>
							<option value="5">Quinta</option>
							<option value="6">Sexta</option>
							<option value="7">Sábado</option>
							</select>
							<label>Inicio:</label><select class="border-radius-15 input-text" id="c_inicio" type="text" name="curso" />
							<option value="1">A</option>
							<option value="2">B</option>
							<option value="3">C</option>
							<option value="4">D</option>
							<option value="5">E</option>
							<option value="6">F</option>
							<option value="7">G</option>
							<option value="8">H</option>
							<option value="9">I</option>
							<option value="10">J</option>
							<option value="11">K</option>
							<option value="12">L</option>
							<option value="13">M</option>
							<option value="14">N</option>
							<option value="15">O</option>
							<option value="16">P</option>
							</select>
							<label>Fim:</label><select class="border-radius-15 input-text" id="c_fim" type="text" name="curso" />
							<option value="1">A</option>
							<option value="2">B</option>
							<option value="3">C</option>
							<option value="4">D</option>
							<option value="5">E</option>
							<option value="6">F</option>
							<option value="7">G</option>
							<option value="8">H</option>
							<option value="9">I</option>
							<option value="10">J</option>
							<option value="11">K</option>
							<option value="12">L</option>
							<option value="13">M</option>
							<option value="14">N</option>
							<option value="15">O</option>
							<option value="16">P</option>
							</select>
							<button class="btn btn-success" id="btn_add"  type="submit"><i class="icon-plus icon-large"></i> Adicionar Horário</button>
							</select>
						</form>
					</div>
				

				</div>
				<div class="grid-title"><i class="icon-table icon-large"></i> Disponibilidade de Horários:</div>
				<div class="grid-result">
					<table id="grid_disponibilidade" class="grid-table" border="1">
						<tr>
							<th class="colum">Dia</th>
							<th>Início</th>
							<th>Fim</th>
							<th class="colum">Ação</th>
						</tr>
					</table>
					
				</div>

			</fieldset>
			<fieldset class="group-fields">
				<div class="place-action">
				<button class="btn btn-success" id="gerar_matricula"><i class="icon-table icon-larger"></i> Gerar Matrícula</button>
				</div>
			</fieldset>

			<fieldset class="group-fields">
				<legend>Resultado</legend>

				<div class="grid-title"><i class="icon-table icon-large"></i> Disciplinas sugeridas:</div>
				<div class="grid-result">
					<table class="grid-table" id="grid_resultado" border="1">
						<tr>
							<th class="colum">Código</th>
							<th>Disciplina</th>
							<th>Turma</th>
							<th>Horario</th>
						</tr>
						<tr>
							<td  colspan="4"><i class="icon-warning-sign icon-larger"></i>  Nenhum registro</td>
						</tr>
					</table>
				

				</div>
			</fieldset>
		</div>

	</div>

</div>


<div class="block">
<div>
<div class="text"><i></i>Carregando...<span class="info"><span></div>
</div>
</div>
</body>

</html>